package org.sixtynine.stock.service;

/**
 * @author Thilan
 *
 */

import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.AnnualShareData;

public interface AnnualShareDataService {

	AnnualShareData findById(int id);

	void saveAnnualShareData(AnnualShareData annualShareData);

	void deleteAnnualShareData(int id);

	List<AnnualShareData> findAnnualShareData(int companyId);

	List<AnnualShareData> searchAnnualShareData(int companyId, int fromYear,
			int toYear, String orderBy, String orderByName);

	Page<AnnualShareData> searchAnnualShareData(int companyId,
			String companyName, int fromYear, int toYear, String orderBy,
			String orderByName, GridPramDTO gridPramDTO);

	public void deleteAnnualShareData(int companyId, int fromYear, int toYear);
}
